package com.adee.java;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test046_Date {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date d1 = f.parse("2024-01-09 10:47:10");
        Date d2 = f.parse("2024-01-09 10:47:10");
        System.out.println(d1.equals(d2));
        System.out.println(d1.after(d2));
        System.out.println(d1.getTime());
    }
}
